<?php echo $header;echo $sidebar ?>		

		<div class="span10 content">

			<?php echo $hugemenu ?>



			<h1>Export Data</h1>

			<?php if($this->session->flashdata('message')) {?>
			<div class="alert alert-success">
				<?php echo $this->session->flashdata('message') ?>
			</div>
			<?php  }?>

			<div>

				<table class="table table-striped table-bordered table-hover table-primary">

					<thead>
						<tr>
							<th>Export Data</th>
							<th>CSV Format</th>
							<th>XML Format</th>
						</tr>

					</thead>

					<tbody>
							<tr>
								<td>All Car Listing</td>
								<td><input class="btn btn-medium btn-primary" type="button" name="csv_btn" id="csv_btn" value="CSV" onclick="getCsv(); return false;" /></td>
								<td><input class="btn btn-medium btn-primary" type="button" name="xml_btn" id="xml_btn" value="XML" onclick="getXml(); return false;" /></td>
							</tr>
					</tbody>
				</table>
			</div>
		</div><!--/content-->
<?php echo $footer ?>

<script>

function getXml() {
	window.location.href="exportXml";
}

function getCsv() {
	window.location.href="exportCsv";
}
</script>